Skip to main content
In this guide, you’ll learn how to use the core sequence.js libraries to seamlessly integrate Privy with Sequence, enabling your users to sign in and interact with your app through a Sequence Smart Wallet. This involves creating a Sequence wallet controlled by a user’s Privy-managed EOA, and then using that Sequence wallet to send gasless transactions on Base Sepolia.
We will be using Next.js 15, React 19, and Tailwind CSS 4.
1

Install Dependencies

You’ll need the Sequence, Privy, and wagmi/viem packages.
2

Get your Privy App ID & Client ID

You’ll need to get a Privy App ID and Client ID. You can get these by creating a new app in the Privy Dashboard. Create an .env.local file in your project root and add your NEXT_PUBLIC_PRIVY_APP_ID and NEXT_PUBLIC_PRIVY_CLIENT_ID.
3

Setup the Providers

Set up WagmiProvider and PrivyProvider in your a providers.tsx file. We do this to allow our app to use both Privy for authentication and wagmi for wallet interactions.
[providers.tsx]
4

Wrap the App's layout with the Providers

Wrap the App’s layout with the Providers.
[layout.tsx]
5

Add transaction types

Add the following types to ./constants/types.ts.
[./constants/types.ts]
6

Create a StaticSigner class

Create a StaticSigner class in ./utils/StaticSigner.ts.
[./utils/StaticSigner.ts]
7

Add the utility methods

We need a couple of utility methods.Add this file in ./utils/index.ts.
[index.ts]
8

Create a Sequence Wallet and send a gasless transaction

[page.tsx]
9

Run the app